home *** CD-ROM | disk | FTP | other *** search
- Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
- From: thay@uoguelph.ca (Toby K Hay)
- Newsgroups: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++
- Subject: Re: problems with GCC
- Followup-To: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++
- Date: 17 Apr 1996 03:42:40 GMT
- Organization: University of Guelph
- Message-ID: <4l1pbg$ac2@ccshst05.uoguelph.ca>
- References: <4l1and$iql@news.ran.es>
- NNTP-Posting-Host: ccshst01.uoguelph.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Chano G≤mez Martφnez (chano@ran.es) wrote:
- : First of all, I want to apologize for my awful English.
-
- : I'm trying to port a C program from Borland C++ 3.1 to GCC under
- : Linux.
- : My problem is that I can't use any function from math.h !!!
- : The file is correctly #include'd ( in fact, I get no compilation
- : errors ) but the linker always tells me something like :
- snip
- Your English is impeccable. I expect your only problem with gcc is that
- you've neglected to link the math library by typing -lm when you invoke
- gcc. I use cc to compile and link my ANSI C programs developed in Turbo
- C 3.1 with the following command:
- cc MyProg.c -lm -O
- I expect gcc is the same.
- Toby Hay thay@uoguelph.ca
-
-